package services;

import java.util.List;

import connectDB.IDB;
import connectDB.PacketDB;
import entities.Packetentities;

public class Packetservices {

	private IDB<Packetentities, Boolean, String> packdb = new PacketDB();
	public List<Packetentities> getall(){
		
		return this.packdb.findAll();
	}
	
	public boolean setadd(Packetentities pack){
		
		return this.packdb.add(pack);
	}
	
	public boolean setupdate(Packetentities pack){
		
		return this.packdb.add(pack);
	}

public boolean setdelete(String pack){
	
	return this.packdb.delete(pack);
}
	
}
